SER = SendFileServer.cpp md5.cpp
CLI = SendFileClient.cpp md5.cpp

CC = g++

INCLUDES = -I../../base      \
           -I../../include   \

#debug -pg
#CCFLAGS = -lpthread -fPIC -m64 -g -std=c++11 -lstdc++ -pipe 

CCFLAGS = -lpthread -fPIC -m64 -O2 -std=c++11 -lstdc++ -pipe -march=corei7 

TARGET = ../../libcppnet.a
SERBIN = sendfileserver
CLIBIN = sendfileclient

all:$(SERBIN) $(CLIBIN)

$(SERBIN):$(SER) $(TARGET)
	$(CC) $(SER) -o $@  $(TARGET)  $(CCFLAGS) $(INCLUDES)

$(CLIBIN):$(CLI) $(TARGET)
	$(CC) $(CLI) -o $@  $(TARGET)  $(CCFLAGS) $(INCLUDES)

clean:
	rm -rf $(SERBIN) $(CLIBIN)